home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
impperror.z
/
impperror
Wrap
Text File
|
1998-10-30
|
3KB
|
67 lines
iiiimmmmppppPPPPeeeerrrrrrrroooorrrr((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo iiiimmmmppppPPPPeeeerrrrrrrroooorrrr((((3333))))
NNNNAAAAMMMMEEEE
impPerror, impErrorString - report libimp execution error messages
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<iiiimmmmpppp....hhhh>>>>
vvvvooooiiiidddd iiiimmmmppppPPPPeeeerrrrrrrroooorrrr((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssssttttrrrr))));;;;
cccchhhhaaaarrrr**** iiiimmmmppppEEEErrrrrrrroooorrrrSSSSttttrrrriiiinnnngggg((((iiiinnnntttt eeeerrrrrrrrCCCCooooddddeeee))));;;;
eeeexxxxtttteeeerrrrnnnn iiiinnnntttt IIIIMMMMPPPPeeeerrrrrrrrnnnnoooo;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_i_m_p_P_e_r_r_o_r prints error messages to _s_t_d_e_r_r in a format similar to the
standard C library function _p_e_r_r_o_r(_3_C). If an error occurs during a
_l_i_b_i_m_p function call, the global error variable _I_M_P_e_r_r_n_o will be set with
an error code. The error code will either be a system error code (i.e.
_e_r_r_n_o) or a _l_i_b_i_m_p specific code. The symbolic names for the _l_i_b_i_m_p error
codes are defined in _i_m_p._h.
The value of _I_M_P_e_r_r_n_o is used by _i_m_p_P_e_r_r_o_r as an index to a table of
error messages. _i_m_p_P_e_r_r_o_r will print the user-supplied string _s_t_r
followed by a colon (:), a space, and the error message corresponding to
the current value of _I_M_P_e_r_r_n_o. If the string _s_t_r is the NULL string (""),
no colon or space will be printed, only the error message. The error
message will either be a system error message or a _l_i_b_i_m_p specific
message.
To be of most use, a call to _i_m_p_P_e_r_r_o_r should be made immediately
following the _l_i_b_i_m_p function call where an error has been detected.
_i_m_p_E_r_r_o_r_S_t_r_i_n_g is similar to the _s_t_r_e_r_r_o_r(_3_C) function and returns the
error message corresponding to the error code specified by _e_r_r_C_o_d_e. If
_e_r_r_C_o_d_e is less than IIIIMMMMPPPP____EEEERRRRRRRR____BBBBAAAASSSSEEEE, the message returned is a system error
message generated by _s_t_r_e_r_r_o_r. If _e_r_r_C_o_d_e is one of the error codes
specified in _i_m_p._h, the returned string is a _l_i_b_i_m_p specific error
message.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libimp(3), perror(3C), strerror(3C)
PPPPaaaaggggeeee 1111